package com.myzl.common.enums;

import lombok.Getter;

/**
 * @author Administrator
 * @date 2022年10月26日16:14:55
 */
@Getter
public enum PlcFunctionEnum {

    /** 3 读保持寄存器 */
    READ_HOLDING_REGISTERS(3, "读保持寄存器"),
    /** 5 写单个线圈 */
    WRITE_ONE_COILS(5, "写单个线圈"),
    /** 10 随便写的 */
   WRITE_HOLDING_REGISTERS(16, "写多个保持寄存器");

    private PlcFunctionEnum(int code, String info){
        this.code = code;
        this.info =info;
    }

    private final int code;
    private final String info;
}
